//
//  ByAccountDetailView.m
//  recordworktool_ios
//
//  Created by mc on 2017/12/9.
//  Copyright © 2017年 ZhangZhanbin. All rights reserved.
//

#import "ByAccountDetailView.h"

@implementation ByAccountDetailView

- (id)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        
        UILabel *titleLabel = [[UILabel alloc] init];
        [self addSubview:titleLabel];
        [titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.equalTo(self).offset(0);
            make.top.equalTo(self).offset(0);
            make.bottom.equalTo(self).offset(-1);
            make.width.mas_equalTo(@100);
        }];
        titleLabel.backgroundColor = BY_THEME_COLOR;
        titleLabel.text = @"加班记工单位";
        titleLabel.font = FONT(14);
        titleLabel.textAlignment = NSTextAlignmentCenter;
        titleLabel.textColor = [UIColor whiteColor];
        
        UILabel *valueLabel = [[UILabel alloc] init];
        [self addSubview:valueLabel];
        [valueLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.top.equalTo(self).offset(0);
            make.bottom.equalTo(self).offset(-1);
            make.left.equalTo(titleLabel.mas_right).offset(0);
            make.right.equalTo(self).offset(0);
        }];
        valueLabel.textColor = TEXT_COLOR;
        valueLabel.backgroundColor = [UIColor whiteColor];
        valueLabel.font = FONT(14);
        valueLabel.textAlignment = NSTextAlignmentCenter;
        valueLabel.text = @"15868405030";
        
        
        UILabel *line = [[UILabel alloc] init];
        [self addSubview:line];
        [line mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.equalTo(titleLabel.mas_right).offset(0);
            make.right.equalTo(self).offset(0);
            make.bottom.equalTo(self).offset(0);
            make.height.mas_equalTo(@1);
        }];
        line.backgroundColor = BY_THEME_COLOR;
        self.line = line;
        self.valueLabel = valueLabel;
        self.titleLabel = titleLabel;
        
        
    }
    return self;
}


@end
